import java.util.Comparator;

class Message<T> {
    private T message ;
    public T getMessage() {
        return message;
    }
    public void setMessage(T message) {
        this.message = message;
    }
}

class Food {
}
class Fruit extends Food {

}
class Apple extends Fruit {
}
class Banana extends Fruit {
}


public class Test {
    Comparator comparator;
    public static void reflectNewInstance(){
        try {
            Class<?> c1=Class.forName("Student");
            Student student1 =(Student)c1.newInstance();
            Student student2 =(Student)c1.newInstance();
            System.out.println(c1.equals(student1));//false
            System.out.println(student1.equals(student2));//false
            System.out.println(c1);
            System.out.println(student1);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }
    public static void main(String[] args) {
        reflectNewInstance();
    }
    public static void main1(String[] args) {
        Student student = new Student();
        System.out.println(student);
    }

    public void func(Message<? extends Fruit> message) {
//    message.setMessage();
    }
}
